-
Notifications
You must be signed in to change notification settings - Fork 59
Fix for sending delivery and zip4 verification in the same request #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
easypost/__init__.py
Outdated
| for param in verify_strict: | ||
| url += "verify_strict[]={0}".format(param) | ||
| url += '?' + '&'.join( | ||
| ['verify[]=' + param for param in verify] + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use .format instead of +.
…t-python into zip4-delivery-fix-abram
|
@att14 how's this? |
easypost/__init__.py
Outdated
|
|
||
| @classmethod | ||
| def create(cls, api_key=None, verify=None, verify_strict=None, **params): | ||
| def create(cls, api_key=None, verify=[], verify_strict=[], **params): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't use mutable types as kwargs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this could be called repeatedly. Uhg I'm not a fan of that bit of Python behavior
Old code constructed broken query params